#!/usr/bin/env python
#__description__"
#__time__: 2018/4/19 14:33
#__author__: leetone123
#__file__: your_sentence.py
sentence = input("Give yout Sentence:")
screen_width = 80
text_width = len(sentence)
box_width = text_width + 6
left_margin = (screen_width - box_width) // 2
print()
print(' ' * left_margin + '+' + '-' * (box_width-2) + '+')
print(' ' * left_margin + '|' + ' ' * (box_width-2) + '|')
print(' ' * left_margin + '|' + ' ' * 2 + sentence + ' ' * 2 + '|')
print(' ' * left_margin + '|' + ' ' * (box_width-2) + '|')
print(' ' * left_margin + '+' + '-' * (box_width-2) + '+')
print()